<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<html>
	<%@include file="/common/fullFrame.jsp"%>
	<div id="newsIndexContainer1">
		<div id="topFn1">
			<span><a href="#" id="postNewsBtn">我要发布新闻</a></span>
		</div>
		<div id="topFn2">
			<span><a href="#" id="myNews">我发布的新闻</a></span>
		</div>
		
		<!-- 本周热点 -->
		<div id="newsWeek">
			<span class="titleBlock">本周热点</span>
		</div>
		
		<!-- 最新发布 -->
		<div id="newsLatest">
			<table width="100%">
				<tr>
					<td width="80%" align="left">
						<span class="titleBlock">最新发布</span>
					</td>
					<td align="right">
						<a id="moreNews">更多...</a>
					</td>
				</tr>
			</table>
		</div>
		
		<!-- 中部广告区域 -->
		<div id="newsAd1">
			<img src="../images/aotobanner_2.jpg" style="width:100%;height:100%"></img>
		</div>
		<!-- DIV内部分割线 -->
		<img class="hLine5"
			src="images/u84.png"/>
		<img class="hLine7"
		src="images/u84.png"/>
	</div>
	
	<!-- 列表 -->
	<%@include file="newsList.jsp"%>
	<!-- 发布新闻 -->
	<%@include file="postNews.jsp"%>
	
	<img class="hLine6"
			src="images/u84.png"/>
	<img class="vLine2"
		src="images/u81.png"/>
	
	
	<!-- 右侧数据区 -->
	<div id="newsRightData">
		<div id="tagCloudDiv">
		</div>
		<div id="newsLastWeek">
			<span>上周热点</span>
		</div>
		<div id="newsAd2">
			广告位
		</div>
		<div id="newsMonth">
			<span>本月热点</span>
		</div>
	</div>
	<link href="../css/newsIndex.css" type="text/css" rel="stylesheet" />
	<script type="text/javascript" src="../common/swfobject.js"></script>
	<script language=javascript>
		$(document).ready(function(){
			//初始化右侧的标签云
			var so = new SWFObject("tagcloud.swf", "ampie1", "100%", "100%", "5", "#FFFFFF");
		  	so.addParam("wmode", "transparent");
		  	so.write("tagCloudDiv");
		  	
		  	//为元素增加事件监听
		  	var returnToList=function(){
				$("#postNews").hide();
		  		$("#newsList").hide();
		  		$("#newsIndexContainer1").show();
			};
			$("a[id$=Back]").each(function(){
				$(this).click(returnToList)
			});
			
			//显示列表
			var showNewsList=function(){
				var fromId=this.id;
				if(fromId=="myNews"){
					$("#newsListType").html("我发布的新闻");
				}else if(fromId=="moreNews"){
					$("#newsListType").html("最新发布");
				}
				$("#postNews").hide();
		  		$("#newsIndexContainer1").hide();
		  		$("#newsList").show();
			}
		  	$("#myNews").click(showNewsList);
		  	$("#moreNews").click(showNewsList);
		  	
		  	//发布新闻
		  	$("#postNewsBtn").click(function(){
		  		$("#newsIndexContainer1").hide();
		  		$("#newsList").hide();
		  		$("#postNews").show();
		  	});
		})
	</script>
</html>